Results 1 to 3 of 3

Thread: Adding custom vars to email templates?

  1. #1
    Senior Hostboard Member LonArcvarden's Avatar
    Join Date
    June 20th, 2022
    Posts
    321
    Follows
    0
    Following
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)

    Adding custom vars to email templates?

    Adding custom vars to email templates? User email confirmation FRONTEND_URL use case

    Hello,

    I would like to be able to add custom vars to the e-mail templates of the user-permission confirmation and reset password templates.

    I’m using Strapi v5 through an Astro front-end, so the Strapi confirm link will not be immediately visible to end users who need to click on the e-mail link.

    A solution would be being able to define custom vars such as the provided <%= CODE %>, for example <%= FRONTEND_URL %> that would be available globally.

    Without this, I think I need to hard code these values between dev and staging.

  2. #2
    Senior Hostboard Member MichaelSavan's Avatar
    Join Date
    July 29th, 2022
    Posts
    178
    Follows
    0
    Following
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)

    Re: Adding custom vars to email templates?

    You can add your own vars by extending the email plugin’s send call in a lifecycle or controller and passing FRONTEND_URL into the template context so it works like CODE.

  3. #3
    Senior Hostboard Member princemeraj's Avatar
    Join Date
    February 23rd, 2023
    Posts
    234
    Follows
    0
    Following
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)

    Re: Adding custom vars to email templates?

    I’ve been growing my outreach lists faster lately by using scrape emails from linkedin to pull verified contacts without needing to log in or run extensions. The built‑in verification saved me a ton of bounces, and the background processing kept things moving while I worked on other tasks. The free credits made it easy to test without committing anything upfront.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •